/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow strict-local
 */

import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import Start from './app/modules/start';
import Login from './app/modules/login/pages/login';
import UserAgreement from './app/modules/login/pages/userAgreement';
import Home from './app/modules/home';
import FindDetail from './app/modules/detail'
import SelfWork from './app/modules/selfWork'
import Fans from './app/modules/fans'
import DownLoad from './app/modules/mine/pages/downLoad'
import Help from './app/modules/mine/pages/help'
import HelpDetail from './app/modules/mine/pages/helpDetail'
import Suggest from './app/modules/mine/pages/suggest'
import Review from './app/modules/mine/pages/review'
import Setting from './app/modules/mine/pages/setting'
import SettingListPage from './app/modules/mine/pages/settingListPage'
import Search from './app/modules/hot/pages/search'
import MineInfo from './app/modules/mine/pages/mineInfo'
import AddImg from './app/modules/mine/pages/addImg'
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack';

const AppStack = createStackNavigator();

const App = () => {
  return (
    <NavigationContainer>
      <AppStack.Navigator>
        <AppStack.Screen
          name="Start"
          component={Start}
          options={{headerShown: false}}
        />
        <AppStack.Screen
          name="Login"
          component={Login}
          options={{headerShown: false}}
        />
        <AppStack.Screen
          name="UserAgreement"
          component={UserAgreement}
          options={{
            headerShown: false,
            ...TransitionPresets.ModalSlideFromBottomIOS,
          }}
        />
        <AppStack.Screen
          name="Home"
          component={Home}
          options={{
            headerShown: false,
            ...TransitionPresets.ModalSlideFromBottomIOS,
          }}
        />
         <AppStack.Screen
          name="FindDetail"
          component={FindDetail}
          options={{
            headerShown: false,
          }}
        />
        <AppStack.Screen
          name="SelfWork"
          component={SelfWork}
          options={{
            headerShown: false,
          }}
        />
      <AppStack.Screen
          name="Fans"
          component={Fans}
          options={{
            headerShown: false,
          }}
        />
        <AppStack.Screen
          name="DownLoad"
          component={DownLoad}
          options={{
            headerShown: false,
          }}
        />
        <AppStack.Screen
          name="Help"
          component={Help}
          options={{
            headerShown: false,
          }}
        />
        <AppStack.Screen
          name="HelpDetail"
          component={HelpDetail}
          options={{
            headerShown: false,
          }}
        />
        <AppStack.Screen
          name="Suggest"
          component={Suggest}
          options={{
            headerShown: false,
          }}
          ></AppStack.Screen>
         <AppStack.Screen
          name="Review"
          component={Review}
          options={{
            headerShown: false,
          }}
        />
        <AppStack.Screen
          name="Setting"
          component={Setting}
          options={{
          headerShown: false,
        }}
        />
        <AppStack.Screen
          name="SettingListPage"
          component={SettingListPage}
          options={{
          headerShown: false,
        }}
        />
   
       <AppStack.Screen
          name="Search"
          component={Search}
          options={{
            headerShown: false,
            ...TransitionPresets.ModalSlideFromBottomIOS,
          }}
        />
       <AppStack.Screen
          name="MineInfo"
          component={MineInfo}
          options={{
            headerShown: false,
            ...TransitionPresets.ModalSlideFromBottomIOS,
          }}
        />
        <AppStack.Screen
          name="AddImg"
          component={AddImg}
          options={{
            headerShown: false,
          }}
        />
      </AppStack.Navigator>
    </NavigationContainer>
  );
};

export default App;
